<?php

namespace app\api\Validate;

use think\Validate;

class IntentionValidate  extends Validate
{
    protected $rule = [
        'personage_post_id' => 'require',
        'id' => 'require',
        'province' => 'require',
        'city' => 'require',
        'district' => 'require',
        'address' => 'require',
        'money' => 'require',
        'nature' => 'require',
        'status_name' => 'require',

    ];
    protected $message = [
        'personage_post_id.require'  => '职位不能为空',
        'province.require'  => '省不能为空',
        'city.require'  => '市不能为空',
        'district.require'  => '县区不能为空',
        'address.require'  => '街道不能为空',
        'money.require'  => '金额不能为空',
        'nature.require'  => '性质不能为空',
        'status_name.require'  => '求职状态不能为空',

    ];
    protected $scene = [
        'add' => [
            'personage_post_id',
            'province',
            'city',
            'district',
            'address',
            'money',
            'nature',
            'status_name',
        ],
        'save' => [
            'id',
            'personage_post_id',
            'province',
            'city',
            'district',
            'address',
            'money',
            'nature',
            'status_name',
        ],
    ];
}